<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Order Models';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="order-model-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Order Model', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'order_id',
            'order_char_id',
            'parent_order_id',
            'seller_id',
            'customer_id',
            // 'channel_source',
            // 'device_source',
            // 'status',
            // 'order_time:datetime',
            // 'payment_time:datetime',
            // 'order_cost',
            // 'cost',
            // 'discount',
            // 'available_coupons',
            // 'use_coupons',
            // 'is_settled',
            // 'is_hasInv',
            // 'inv_id',
            // 'payment_type',
            // 'send_time:datetime',
            // 'remark',
            // 'express',
            // 'order_users_id',
            // 'complete_time:datetime',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
